/*********************************************************************
*                SEGGER MICROCONTROLLER GmbH & Co. KG                *
*        Solutions for real time microcontroller applications        *
**********************************************************************
*                                                                    *
*        (c) 2003-2011     SEGGER Microcontroller GmbH & Co KG       *
*                                                                    *
*        Internet: www.segger.com    Support:  support@segger.com    *
*                                                                    *
**********************************************************************

--------- END-OF-HEADER --------------------------------------------*/

#define MAIN_C

#include "RTOS.H"
#include "BSP.h"

void GUITask(void);
void EthTask(void);

static OS_STACKPTR int Stack0[640];  /* Task stacks         */
static OS_STACKPTR int Stack1[640];  /* Task stacks         */
static OS_TASK TCB0, TCB1;           /* Task-control-blocks */

/*********************************************************************
*
*       main
*/
void main(void) {
  OS_IncDI();                      /* Initially disable interrupts  */
  OS_InitKern();                   /* Initialize OS                 */
  OS_InitHW();                     /* Initialize Hardware for OS    */
//  BSP_Init();                      /* Initialize BSP module         */
	
  OS_CREATETASK(&TCB0, "EthernetTask", EthTask, 100, Stack0);
	//OS_CREATETASK(&TCB1, "GUITask", GUITask, 100, Stack1);
	
  
	OS_Start();
}
